Secure encryption system, device and method

ABSTRACT

A system, device and method for encrypting plaintext information securely. The system includes a transmitting agent to generate and synchronize a first cipher stream using the plaintext information and a first key, to generate and synchronize a second cipher stream using a second key and a randomizing function to randomize and synchronize a controllable plaintext stream to form a second synchronized cipher stream, and to operate on the plurality of first and second cipher streams using an exclusive disjunction operator to obtain a ciphertext stream; and a receiving agent to decrypt the ciphertext stream.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates generally to a system, device and method ofsecurely encrypting plaintext (a readable message) information, and moreparticularly, to a system, device and method of encrypting informationto prevent unauthorized access to the encrypted information using aninternal synchronous mechanism.

2. Description of the Related Art

A process to transform a readable information (plaintext P) to anun-readable format using a password (or key K) is regarded asencryption, and decryption is the reverse process of the encryption. Theentire process of encryption and decryption or system is often regardedas “cipher.” When a single key is used for both encryption anddecryption, the cipher is called a symmetric-key cipher (or scheme) asillustrated in FIG. 1, numeral 100. Symmetric-key ciphers are generallycategorized as being either block ciphers or stream ciphers.

As illustrated in FIG. 2, numeral 200, a general block cipher operateson one block of plaintext characters at a time using a same key on eachblock. Most of the encryption methods in use today are block ciphers,e.g., Data Encryption Standard (DES), Triple Data Encryption Standard(Tri-DES), CAST, International Data Encryption Algorithm (IDEA),Blowfish/TwoFish, and Advanced Encryption Standard (AES). Symmetric-keyciphers (block or stream) may be classified by block and key lengths.For example, Tri-DES cipher is a 64-Bit block cipher with 168-Bitkey-length and may be written as Tri-DES(64:168). Similarly, otherciphers may be expressed as: CAST-128(64:128), RC4(1:var),Blowfish(64:var) and AES(var:var). When a same key is used on eachplaintext block Pi, a so-called “Block Effect” occurs, i.e., a sameplaintext block will always generate the same ciphertext block Ci. Inorder to eliminate or reduce the block effect, a number of feedbackmechanisms called “Operation Modes” may be used.

For example: the Electronic Code Book (ECB) Mode is illustrated in FIG.3, numeral 300, wherein each plaintext block P₁ 302, P₂ 304, and P₃ 306is encrypted to form a ciphertext block C₁, C₂ and C₃, respectively. TheCipher Block Chaining (CBC) Mode is illustrated in FIG. 4, numeral 400,wherein plaintext block P₁ 402 and ciphertext block C₀ 408, andsimilarly, a combination of plaintext block P₂ 404 and ciphertext blockC₁ 412 and separately a combination of plaintext block P₃ 406 andciphertext block C₂ 414, are operated on by an exclusive disjunctionoperator XOR 418, undergo encryption in block E 410 and generateciphertext blocks C₁ 414, C₂ 414 and C₃ 416, respectively.

The Cipher Feedback (CFB) Mode is illustrated in FIG. 5, numeral 500,wherein a ciphertext block C₀ 512 undergoes encryption in block E 508,is operated on, together with a plaintext block P₁ 502, by an exclusivedisjunction operator XOR 510 to generate a ciphertext block C₁ 514.Similarly, ciphertext block C₁ 514 undergoes encryption in block E 508,is operated on, together with a plaintext block P₂ 504, by an exclusivedisjunction operator XOR 510 to generate a ciphertext block C₂ 516, andciphertext block C₂ 516 undergoes encryption in block E 508, is operatedon, together with a plaintext block P₃ 506, by an exclusive disjunctionoperator XOR 510 to generate a ciphertext block C₃ 518.

The Output Feedback (OFB) Mode is illustrated in FIG. 6, numeral 600,wherein a ciphertext block C₀ 612 undergoes encryption in block E 610,an output of same is: (1) operated on, together with a plaintext blockP₁ 602, by an exclusive disjunction operator XOR 608 to generate aciphertext block C₁ 614 and (2) input to a next encryption block 610,undergoes encryption in the next block E 610, and an output of same is:(3) operated on, together with a plaintext block P₂ 604, by a nextexclusive disjunction operator XOR 608 to generate a ciphertext block C₂616 and (4) input to a next encryption block 610, undergoes encryptionin the next block E 610, and an output of same is: (5) operated on,together with a plaintext block P₃ 606, by a next exclusive disjunctionoperator XOR 608 to generate a ciphertext block C₃ 618, and continues inthe same fashion.

In general, when the block-length of a block cipher is reduced to one,the cipher is similar to encrypting a stream of individual characters,and therefore is also classified as a stream cipher. Given a plaintextstream, a typical encryption process for a stream cipher is to generatean arbitrary long string from the key K called “key-stream”. Thekey-stream is then used to perform a bitwise XOR operation with theplaintext character-by-character producing the ciphertext.

As illustrated in FIG. 7, numeral 700, encryption 702 using streamciphers operates 710 on a single character of the plaintext 708 at atime using a stream of encryption characters called “Key-Stream” 706 toform ciphertext 712, which, when received, undergoes a decryptionprocess 704 in which the keystream 714 is applied to a reverseencryption process 716 to provide the plaintext 718. In order to createa key-stream, a feedback mechanism is employed so that the key isconstantly changing. Some of the stream ciphers presently in use are:RC4 (a stream cipher designed by Rivest for RSA Data Security (now RSASecurity), which is a variable key-size stream cipher with byte-orientedoperations based on the use of a random permutation); ISAAC (InternetSecurity, Applications, Authentication and Cryptography), which isuseful as a stream cipher, for simulations, and as a general purposepseudorandom number generator); and SEAL (Software-optimized EncryptionAlgorithm), which is a fast stream cipher for 32-bit machines designedby Rogaway and Coppersmith.

Stream ciphers are usually divided into two categories designated“Synchronizing” and “Self-Synchronizing.” When the generated key-streamof a stream cipher is independent of the plaintext and ciphertext, it iscalled a “Synchronizing” stream cipher. The key-stream of a synchronizedstream cipher generally depends on the key only. One characteristic ofthese ciphers is that both the sending and receiving ends must besynchronized. In other words, as long as the same key and the sameposition of the key-stream are used, the decryption is well-defined andproceeds accordingly. In particular, when the key-stream and theplaintext are XORed in binary level (or bits) to produce the binaryciphertext, the synchronized stream cipher is called a binary additivestream cipher. Binary additive stream ciphers are popular in industry.The structure of the cipher is non-complex. For example, any suitablepseudo-random number generator may be used with an input key to generatea sequence of random bits. Most of the practical and commercial streamciphers are binary additive stream ciphers.

When the generated key-stream is a function of the key and some parts ofprevious ciphertext, the stream cipher is called “Self-Synchronizing.”Using part of the ciphertext data for encryption is used to eliminateblock effects for a block cipher. For this reason, the Cipher FeedbackMode (CFB) may be modified easily to operate as a stream cipher byemploying encryption only in the cipher to produce the same key-stream.The modifications of the Cipher Feedback Mode (CFB) to performencryption and decryption as a stream cipher are illustrated in FIGS. 8and 9.

The block cipher is used to generate a same key-stream. For encryptionin the CFB mode, as illustrated in FIG. 8, numeral 800, a block b_(i)806 is sent to the block cipher E 802 to generated a cipher block e_(i)804. The e_(i) 804 is then split represented as a keystream {ko, . . . ,kn} 808. Together with a section of plaintext stream {po, . . . , pn}810, the XOR operation 812 is carried out and generates a section of theciphertext stream {co, . . . , cn} 804. This section 814 is grouped intoa block and is fed back to the block cipher b_(i) 806 for a nextencryption implementation.

For decryption in the CFB mode, as illustrated in FIG. 9, numeral 900, asection of the ciphertext stream 912 is converted into a block for theblock cipher encryption. Since the same block 906 is input to the blockcipher E 902, the same output e_(i) 904 is obtained. The e_(i) 904 isthen represented as a section of the key-stream {ko, . . . , kn} 908.This key-stream 908 is XORed with the ciphertext stream {co, . . . , cn}912 to produce the plaintext block 910. Again, the same plaintextsection {po, . . . , pn} 910 is obtained because the same key-stream isused.

The “Output Feedback Mode (OFB)” of a block cipher is independent of theciphertext or plaintext and may be used to implement a synchronousstream cipher. As illustrated in FIG. 10, numeral 1000, in OFB modeencryption, a user key may be considered as a block b_(i) 1008 and maybe input to the block cipher E 1006. The result is a block e_(i) 1012.Block e_(i) 1012 is converted into a key-stream {ko, . . . , kn} 1002,and the key-stream {ko, . . . , kn} 1002 is XORed 1014 with theplaintext stream {po, . . . , pn} 1004 to produce the ciphertext stream{co, . . . , cn} 1010. To obtain a next section of the key-stream, theblock e_(i) 1012 is fed back into the block cipher E 1006 again.

As illustrated in FIG. 11, numeral 1100, for the decryption process, asame block b_(i) 1108 (e.g., the user key) is input to the block cipherE 1106 to produce e₁ 1104. The same key-stream {ko, . . . , kn} 1102 isgenerated. An XOR operation 1112 is performed on key-stream {ko, . . . ,kn} 1102 and ciphertext stream {co, . . . , cn}, and a same plaintextstream {po, . . . , pn} 1110 is obtained.

However, none of the conventional block and stream ciphers provide asecure encryption scheme.

SUMMARY OF THE INVENTION

In accordance with an aspect of the present invention, a system encryptsplaintext information securely and includes a transmitting agent togenerate and synchronize a first cipher stream using the plaintextinformation and a first key, to generate and synchronize a second cipherstream using a second key and a randomizing function to randomize acontrollable plaintext stream to form a second synchronized cipherstream, and to operate on the plurality of first and second cipherstreams using an exclusive disjunction operator to obtain a ciphertextstream; and a receiving agent to decrypt the ciphertext stream.

The transmitting agent may include a central processing unit, a memoryand a transceiver coupled to process the plaintext information and,where desired, decrypt a received ciphertext stream.

In accordance with an aspect of the present invention, the transceivermay transmit the ciphertext stream and the controllable plaintext streamto the receiving agent separately.

The system may include a data entry station and a database server linkedvia a Wide Area Network/Local Area Network or a combination thereof.

In accordance with an aspect of the present invention, a device encryptsplaintext information securely, and includes a data entry station. Thedata entry station may include a first cipher stream generatorgenerating and synchronizing a first cipher stream using the plaintextinformation and a first key; a second cipher stream generator generatingand synchronizing a second cipher stream using a second key and arandomizing function to randomize and synchronize a controllableplaintext stream; and an exclusive disjunction operator operating on thefirst and second synchronized cipher streams to obtain a ciphertextstream.

The first cipher stream generator may include a block cipher encryptionunit arranged to generate and synchronize the first cipher stream uponinput of the plaintext information and the first key, wherein the blockcipher encryption unit includes one of a block cipher encryption deviceto generate the first cipher stream and a first synchronization unit tosynchronize the first cipher stream; or a block cipherencryption/synchronization unit that generates and synchronizes thefirst cipher stream.

The second cipher stream generator may include a random functiongenerator arranged to randomize, then synchronize, the controllableplaintext stream upon input of the second key and the controllableplaintext stream to output the second cipher stream, wherein the randomfunction generator includes one of: a random function generator deviceto randomize the controllable plaintext stream and a secondsynchronization unit to synchronize the randomized second cipher stream;or a random function generator/synchronization unit that randomizes andthen synchronizes the second cipher stream.

The exclusive disjunction operator may be an exclusive OR logicaloperator.

In accordance with an aspect of the present invention, a method encryptsplaintext information securely by generating and synchronizing a firstcipher stream using the plaintext information and a first key;generating and synchronizing a second cipher stream using a second keyand a randomizing function to randomize a controllable plaintext streamto form a second cipher stream; and operating on the plurality ofsynchronized first and second cipher streams using an exclusivedisjunction operator to obtain a ciphertext stream.

In accordance with an aspect of the present invention, a method encryptsplaintext information securely by using an exclusive disjunctionoperator to generate a ciphertext stream from a first cipher streamgenerated and synchronized from the plaintext information and a firstkey, and a second cipher stream randomized and then synchronized from acontrollable plaintext stream using a second key.

In accordance with an aspect of the present invention, a method encryptsplaintext information securely by generating a plurality of synchronizedcipher streams, wherein at least a first cipher stream is generated andsynchronized by encrypting plaintext information using a first keywordand at least a second cipher stream is generated and synchronized by arandom function operating on a controllable plaintext and a secondkeyword; and operating on the synchronized plurality of cipher streamsusing an exclusive disjunction operator to obtain a ciphertext stream.

In accordance with an aspect of the present invention, a computerreadable medium has recorded thereon computer readable instructions toencrypt plaintext information securely, wherein the computer readableinstructions include generating and synchronizing a first cipher streamusing the plaintext information and a first key; randomizing and thensynchronizing a second cipher stream formed from a controllableplaintext stream using a second key and a randomizing function; andoperating on the synchronized plurality of first and second cipherstreams using an exclusive disjunction operator to obtain a ciphertextstream.

In accordance with an aspect of the present invention, a computerreadable medium has recorded thereon computer readable instructions toencrypt plaintext information securely, wherein the computer readableinstructions include using an exclusive disjunction operator to generatea ciphertext stream from: a first cipher stream generated andsynchronized from the plaintext information and a first key, and asecond cipher stream randomized and then synchronized from acontrollable plaintext stream using a second key and a randomizingfunction.

In accordance with an aspect of the present invention, a computerreadable medium has recorded thereon computer readable instructions toencrypt plaintext information securely, wherein the computer readableinstructions include generating a synchronized plurality of cipherstreams, wherein at least a first synchronized cipher stream isgenerated by encrypting plaintext information using a first keyword andat least a second synchronized cipher stream is generated by a randomfunction operating on a controllable plaintext and a second keyword; andoperating on the synchronized plurality of cipher streams using anexclusive disjunction operator to obtain a ciphertext stream.

In accordance with an aspect of the present invention, a method ofencrypting plaintext information securely in a credit card includesselecting, by a server/database record, a plaintext P based on userinformation when a user applies for an account; generating, by theserver/database record a first key, a second key and a controllableplaintext stream according to requirements of the user and/or a companyproviding the credit card; using, by the server/database record, theplaintext, the first key, the second key, and the controllable plaintextstream to perform encryption to produce a ciphertext C; insertinginformation of the plaintext, the first key, the controllable plaintextstream and the a first ciphertext stream into the credit card; insertinginformation of the plaintext, the second key, the controllable plaintextstream, and a second ciphertext stream into the cardholder databaserecord; and encrypting the plaintext into ciphertext in accordance witha predetermined scheme utilizing the first key, the second key, and thecontrollable plaintext stream.

At least one of the strings of the plaintext, the ciphertext and thecontrollable plaintext string may be split.

In accordance with an aspect of the present invention, a method ofencrypting plaintext information securely includes assigning a firstkeyword K1, a second keyword K2, a controllable plaintext stream F, anda randomizing function R to user input; sending K1, K2, F and R to areceiving agent via a secure mode; and encrypting a plaintext streamusing K1, K2, F and R in accordance with a predetermined scheme to forma ciphertext stream and transmitting the ciphertext stream to thereceiving agent.

Encrypting a plaintext stream using K1, K2, F and R in accordance with apredetermined scheme may include using a block cipher and K1 to convertthe plaintext stream into a first cipher stream; randomizing F using Rto form a second cipher stream; synchronizing the first cipher streamand the second cipher stream; and operating on the synchronized firstand second cipher streams using an exclusive disjunction operator toobtain a ciphertext stream.

In accordance with an aspect of the present invention, a vector functionmay be used to provide header information to the ciphertext stream fromthe synchronized first cipher stream.

In accordance with an aspect of the present invention, a vector functionmay be used to operate on the synchronized second cipher stream toprovide header information to the ciphertext stream.

In accordance with an aspect of the present invention, a method ofdecrypting plaintext information encrypted as noted above may includeusing K1, K2, F and R in a reverse process to decrypt the ciphertextstream.

The method may be implemented in one of the following transactions: acredit card transaction, a cash machine transaction, a chargingtransaction on the Internet, or an on-line banking transaction.

Additional aspects and/or advantages of the invention will be set forthin part in the description which follows and, in part, will be obviousfrom the description, or may be learned by practice of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

These and/or other aspects and advantages of the invention will becomeapparent and more readily appreciated from the following description ofthe embodiments, taken in conjunction with the accompanying drawing ofwhich:

FIG. 1 is a block diagram representation of a conventional symmetric-keycipher;

FIG. 2 is a block diagram representation of a conventional block cipher;

FIG. 3 is a block diagram representation of a conventional ElectronicCode Book (ECB) Mode;

FIG. 4 is a block diagram representation of a conventional Cipher BlockChaining (CBC) Mode;

FIG. 5 is a block diagram representation of a conventional CipherFeedback (CFB) Mode;

FIG. 6 is a block diagram representation of a conventional OutputFeedback (OFB) Mode;

FIG. 7 is a block diagram representation of a conventional OutputFeedback (OFB) Mode;

FIG. 8 is a block diagram representation of conventional encryption inthe CFB mode;

FIG. 9 is a block diagram representation of conventional decryption inthe CFB mode;

FIG. 10 is a block diagram representation of using a conventional OutputFeedback Mode of a block cipher to implement a synchronous stream cipherin encryption;

FIG. 11 is a block diagram representation of using a conventional OutputFeedback Mode of a block cipher to implement a synchronous stream cipherin decryption;

FIGS. 12A-12B are block diagrams representation of a system ofencrypting plaintext information securely in accordance with twoembodiments of the present invention;

FIG. 13 is a schematic representation of a system of encryptingplaintext information securely in accordance with another embodiment ofthe present invention;

FIG. 14 is a block diagram representation of a device/data entry stationto encrypt plaintext information securely in accordance with anembodiment of the present invention;

FIG. 15 is a block diagram representation of a device/data entry stationto decrypt plaintext information securely in accordance with anembodiment of the present invention;

FIG. 16 is a block diagram representation of encrypting and outputtinginformation of the IV unit as header information stored in theciphertext C stream in accordance with an embodiment of the presentinvention;

FIG. 17 is a block diagram representation of decrypting and outputtinginformation of the IV unit as header information stored in theciphertext C stream in accordance with an embodiment of the presentinvention;

FIG. 18 is a block diagram representation of generating of the secondcipher stream C² in accordance with one embodiment of the presentinvention;

FIG. 19 is a block diagram representation of using an entire-stream modeto perform the bitwise XOR operation with streams C¹ and C² inaccordance with an embodiment of the present invention;

FIG. 20 is a block diagram representation of using a block-by-block modeto perform the bitwise XOR operation with streams C¹ and C² inaccordance with an embodiment of the present invention;

FIG. 21 is a block diagram representation of using acharacter-by-character mode to perform the bitwise XOR operation withstreams C¹ and C² in accordance with an embodiment of the presentinvention;

FIG. 22 is a block diagram representation of the inputs/outputs of thesecure encryption/decryption of an embodiment of the present invention;

FIG. 23 is a block diagram representation of delivery of secure messagesin accordance with an embodiment of the present invention;

FIG. 24 is a block diagram representation of broadcasting a message on apublic or private message board in accordance with an embodiment of thepresent invention;

FIG. 25 is a block diagram representation of a real time applicationchat room or instant messaging in accordance with an embodiment of thepresent invention;

FIG. 26 is a block diagram representation of protecting contents of aweb page in accordance with an embodiment of the present invention;

FIG. 27 is a block diagram representation of protecting softwareinstallation in accordance with an embodiment of the present invention;

FIG. 28 is a block diagram representation of a credit card validation inaccordance with an embodiment of the present invention;

FIG. 29 is a block diagram representation of using a credit cardverifying machine in accordance with an embodiment of the presentinvention;

FIG. 30 is a block diagram representation of controlling a lock of adoor and access to an area in accordance with an embodiment of thepresent invention;

FIG. 31 is a block diagram representation of using a cash machine inaccordance with an embodiment of the present invention;

FIG. 32 is a block diagram representation of using an embodiment of thepresent invention in a charging industry on the Internet;

FIG. 33 is a block diagram representation of using an embodiment of thepresent invention in on-line banking;

FIG. 34 is a flow chart illustrating operations in accordance with amethod/computer readable medium with computer executable instructions ofthe present invention;

FIG. 35 is a flow chart illustrating operations in accordance withanother method/computer readable medium with computer executableinstructions of the present invention; and

FIG. 36 is a flow chart illustrating operations in accordance withanother method/computer readable medium with computer executableinstructions for embodiments of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Reference will now be made in detail to the embodiments of the presentinvention.

In accordance with the preferred embodiments of the present invention,as illustrated in FIG. 12A, numeral 1200, a system of encryptingplaintext information securely comprises a transmitting agent 1202 and areceiving agent 1204, which communicate using a broadcast channel 1206and/or an interaction channel 1208. That is, communication may beaccomplished in a wireless or wired fashion. The transmitting agent 1202generates and synchronizes a first cipher stream using the plaintextinformation and a first key, generates and synchronizes a second cipherstream using a second key and a randomizing function to randomize acontrollable plaintext stream to form a second synchronized cipherstream; and operates on the plurality of first and second cipher streamsusing an exclusive disjunction operator to obtain a ciphertext stream.The receiving agent 1204 decrypts the ciphertext stream in a reversefashion.

In one embodiment of the present invention, illustrated in FIG. 12B,numeral 1250, the transmitting agent 1202 comprises a first centralprocessing unit CPU 1210, a first memory 1212 and a first transceiver1214 coupled to process the plaintext information and, where desired, todecrypt a received ciphertext stream. The first transceiver 1214 furthersends the ciphertext stream to the receiving agent 1204. The receivingagent 1204 generally comprises a second transceiver 1216, a secondcentral processing unit CPU 1218 and a second memory 1220 coupled toprocess received ciphertext streams, to process plaintext informationand to send a ciphertext stream of the processed plaintext informationto the transmitting agent 1202. Generally, the first transceiver 1214transmits the ciphertext stream and the controllable plaintext stream tothe receiving agent separately.

As illustrated FIG. 13, numeral 1300, in one embodiment of the presentinvention, the system comprises a data entry station 1304 and a databaseserver 1308 linked via a Wide Area Network/Local Area Network or acombination thereof. For example, the user may insert a credit card 1302into the data entry station 1304 to provide predetermined data, as isdescribed more fully below.

As illustrated in FIG. 14, numeral 1400, the device/data entry station1400 may comprise a first cipher stream generator 1403 generating andsynchronizing a first cipher stream using the plaintext information 1416and a first key 1418; a second cipher stream generator 1401 generatingand synchronizing a second cipher stream using a second key 1406 and arandomizing function 1404 to randomize and then synchronize acontrollable plaintext stream 1402; and an exclusive disjunctionoperator 1420 operating on the first and second synchronized cipherstreams to obtain a ciphertext stream 1410.

In one embodiment, the first cipher stream generator 1403 comprises ablock cipher encryption unit E1 1414 that is arranged to generate andsynchronize the first synchronized cipher stream upon input of theplaintext information 1416 and the first key K1 1418, wherein the blockcipher encryption unit comprises one of: a block cipher encryptiondevice E1 1414 to generate the first cipher stream and a firstsynchronization unit S1 1412 to synchronize the first cipher stream; ora block cipher encryption/synchronization unit 1414, 1412 that generatesand synchronizes the first synchronized cipher stream.

In one embodiment, the second cipher stream generator comprises a randomfunction generator arranged to randomize, then synchronize, thecontrollable plaintext stream 1402 upon input of the second key K2 1406and the controllable plaintext stream 1402 to output the secondsynchronized cipher stream, wherein the random function generatorcomprises one of: a random function generator device R1 1404 torandomize the controllable plaintext stream and a second synchronizationunit S2 1408 to synchronize the randomized second cipher stream; or arandom function generator/synchronization unit R1 1404, 1408 thatrandomizes and then synchronizes the second cipher stream. The exclusivedisjunction operator is generally an exclusive OR logical operator.

As illustrated in FIG. 34, numeral 3400, in one embodiment of thepresent invention, the method/computer readable medium with computerexecutable instructions 3400 to encrypt plaintext information securelyincludes the operations of generating and synchronizing a first cipherstream using the plaintext information and a first key 3402; generatingand synchronizing a second cipher stream using a second key and arandomizing function to randomize a controllable plaintext stream toform a second cipher stream 3404; and operating on the plurality ofsynchronized first and second cipher streams using an exclusivedisjunction operator to obtain a ciphertext stream 3406.

As illustrated in FIG. 35, numeral 3500, in one embodiment of thepresent invention, the method/computer readable medium with computerexecutable instructions 3500 to encrypt plaintext information securelyincludes using an exclusive disjunction operator 3502 to generate aciphertext stream from: a first cipher stream generated and synchronizedfrom the plaintext information and a first key, and a second cipherstream randomized and then synchronized from a controllable plaintextstream using a second key.

As illustrated in FIG. 36, numeral 3600, in one embodiment of thepresent invention, the method/computer readable medium with computerexecutable instructions 3600 to encrypt plaintext information securelyincludes generating a plurality of synchronized cipher streams, whereinat least a first cipher stream is generated and synchronized byencrypting plaintext information using a first keyword and at least asecond cipher stream is generated and synchronized by a random functionoperating on a controllable plaintext and a second keyword 3602; andoperating on the synchronized plurality of cipher streams using anexclusive disjunction operator to obtain a ciphertext stream 3604.

As noted above, the present invention may also be embodied as computerreadable codes on a computer readable recording medium. The computerreadable recording medium is any data storage device that may storedata, which may be thereafter read by a computer system. Examples of thecomputer readable recording medium include read-only memory (ROM),random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks,optical data storage devices, and carrier waves (such as datatransmission through the Internet). The computer readable recordingmedium may also be distributed over network coupled computer systems sothat the computer readable code is stored and executed in a distributedfashion.

As illustrated in FIG. 14, numeral 1400, instead of generating akeystream from the key K as a traditional stream cipher did, the presentinvention generates two cipher streams C¹ and C². The final ciphertextstream 1410 is an output of a bitwise XOR operation of the two cipherstreams C¹ and C². In one embodiment, the first cipher stream C₁ isgenerated by a block cipher E1 1414 with the original plaintext P 1416and the first key K1 1418 and is synchronized using a synchronizationunit S1 1412. Alternatively, the block cipher E1 1414 and thesynchronization unit S1 1412 may be a combined unit. In one embodiment,the second cipher stream C² is generated by a controllable plaintextstream F 1402 with a random function R1 1404 and the second key K2 1406and is synchronized using a synchronization unit S2 1408. Alternatively,the random function R1 1404 and the synchronization unit S2 1408 may bea combined unit. The final ciphertext C 1410 is obtained by using abitwise (or character-by-character) XOR operation of C¹ and C².

The operation of the decryption process, illustrated in FIG. 15, numeral1500, is slightly different from the encryption. First, a second cipherstream C₂ 1508 must be generated, wherein the second cipher stream C₂matches the second cipher stream C₂ of FIG. 14. For this, a controllableplaintext F 1502 that matches the controllable plaintext F 1402, arandom function R1 1504 that matches the random function R1 1404, and asecond key K2 1506 that matches the second key K2 1406 must be used.When this stream is available, the controllable plaintext F 1402 and therandom function R1 1404 typically being transmitted separated from thetransmitting agent to the receiving agent (wherein the second key K21406 is generally already known to the receiving agent, or may beprearranged to be received in a desired fashion), the next operation isto perform bitwise XOR with C₂ and the ciphertext Ccharacter-by-character. The output plaintext stream 1512 is the same asthe first cipher stream C¹. This result is guaranteed by the followingbitwise XOR operation:C_(i)=C¹ _(i)XOR C² _(i)=>C_(i)XOR C² _(i)=C¹ _(i)Once the first cipher stream C¹ is generated, the original plaintext P1416 is obtained by the decryption process D1 associated with theoriginal choice of E1 1414 and key K1 1418.

The construction of the first cipher stream C¹ depends on P 1416 and theselections of the encryption device E1 1414 and the synchronization,which may be accomplished, if desired, by a separate synchronizationdevice S1.

The first cipher stream C¹ is generated by block cipher E1 1414 with theoriginal plaintext P 1416 and the first key K1 1418. For example, blockciphers such as DES, Tri-DES, and AES may be used as E1 1414. In fact,not just block cipher, but a stream cipher with a key or even anidentity cipher (a straight through cipher, i.e., no-encryption at all)may be used as E1 1414. The secure feature of the ciphertext C 1510 doesnot depend on the choice of E1 1414. By suitable selection of thecontrollable plaintext F 1402, the secure feature of C 1510 isestablished. The only requirement for the choice of E1 1414 is that theencryption is reversible. In other words, the corresponding decryptiondevice (or process) D1 exists with the same key, a different key, oreven without any key involved.

The use of block cipher ensures that the first cipher stream C¹ iseffective since block cipher produces an effective encryption. For avery effectively encrypted first cipher stream, a block cipher such asAES (Advanced Encryption Standard) may be utilized. For applications inwhich speed is important, a stream cipher such as RC4 may, for example,be used as E1.

The properties of the block cipher E1 1414 selected such as Block-Length(or Size) and Encryption Key-length directly impact the encryptionprocess. The design of the synchronization process in S1 depends on thechoices of E1 1414, S2 1405, and the header information H of theCiphertext C. The function of S1 1405 is to ensure that the cipherstream C¹ is compatible with C², so that the entire decryption processis effectively maintained. In particular, when block cipher is used, theresult will be output block-by-block. In this case, the most elementaryfunction of the S1 1405 is to convert the block data into a stream(character-by-character). In one embodiment, the length of the C¹(and/or P 1416) together with the stream information are also stored ina parameter called “Initial Vector (IV)”. This IV will be used toprovide update information for the S2 1508 so that the secure feature ofC may be maintained.

Encryption usually includes processing a message down to the bit level.Computers store data in binary, a series of bits made up of 0s and 1s.The computer stores 8 of these bits in a structure called a byte. A bigendian system stores the most significant value in the lowest numericalbyte address and a little endian system does exactly the opposite,storing the least significant address in the lowest address. OperatingSystems like Windows NT are little endian, and other OSes like HP-UX arebig endian. Some programs not written in Java may use little-endianorder, for example, C programs. Some platforms use big-endian orderinternally (Mac, IBM 390); some use little-endian order (Intel). Javahides that internal endianness. Java presumes that binary data is storedmost significant byte first. Even if internally this is not so, Javacompletely hides that fact. All files it produces are big-endian,network order.

Converting data between the two endian systems is sometimes referred toas the NUXI problem. Imagine the word UNIX stored in two 2-byte words.In a big-endian system, it would be stored as UNIX. In a little-endiansystem, it would be stored as NUXI. Note that the example above showsonly big- and little-endian byte orders. The bit ordering within eachbyte can also be big- or little-endian, and some architectures actuallyuse big-endian ordering for bits and little-endian ordering for bytes,or vice versa.

When dealing with the internal computer architecture or systems, the“big-endian” and “little-endian” situations, big-endian andlittle-endian situations may need to be resolved. For example, a blockcipher may be selected that uses a big-endian structure and the randomdevice R1 1404 may be selected as a little-endian structure. In thiscase, the S1 1412 and S2 1408 devices are used to handle thecompatibility problems. Also, if noise is introduced into the E1 1414before P 1402, the noise data will be at the beginning of the C¹. Inthis case, a counting number or a string into the IV unit (see FIG. 16)may need to be output.

The information of the IV unit 1608 is output as header informationstored in the ciphertext C stream 1606, as illustrated in FIG. 16,numeral 1600. During the decryption process, the header information Hwill be input to S1 1410 so that the synchronization process will beperformed properly, as illustrated in FIG. 17, numeral 1700.

As illustrated in FIG. 18, numeral 1800, generation of the second cipherstream C² depends on the controllable plaintext F1802, a random deviceR1 1806 (with a key K2 1804), a second synchronous device S2 1808, andan internal vector IV unit 1807. The main purpose of these devices is tomake sure that C² as the cipher image of F 1802 is random andunpredictable. The character set of C² covers the complete set of bits.Also, the length of C² must be long enough to perform the bitwise XORoperation with the entire stream C¹.

In the embodiment illustrated in FIG. 18, numeral 1800, in order toproduce a random and un-predictable cipher stream C², a controllableplaintext F 1802 is used. One of the primary choices of F 1802 is that F1802 itself is a set of random (or pseudo-random) numbers. For example,F 1802 may be a set of random characters generated by a random numbergenerator (RNG) or pseudo-random number generator (PRNG). For practicalpurposes, a printable character set such as (a-z)(A-Z)(0-9) isrecommended so that F 1802 is editable and changeable by hand or aneditor, such as, for example, notepad. To increase the unpredictabilityfeature of F 1802, F should be changed frequently. Depending on theapplication, F 1802 should be long enough to generate multipleencryptions and short enough to maintain the efficiency and performanceof the encryption. For example, the encryption is used for shortmessages (less than 600 characters), the size of F 1802 may be 2000-6000characters.

The main function of the randomizing device R1 1806 is to use F 1802 asa controllable plaintext to produce a further randomized stream. Also,the character set of the stream should be full bits depending on themachine and operating platform. For example, for an n-bit platform, eachcharacter of the stream produced by the randomizing device R1 1806should have equal (or near equal) probability combination of the n-bits.

For example, a suitable randomizing device R1 1806 may utilize a blockor stream cipher such as DES, Tri-DES, CAST, IDEA, Blowfish/TwoFish,AES, RC4, ISAAC, or SEAL, which are efficient randomizers andbit-expansion methods for the corresponding plaintext. When a cipher isused for R1 1806, a key K2 1804 is automatically involved andoccasionally, is not shown. The existence of a decryption feature of R11806 is not important. Also, the encryption used for R1 1806 may be thesame or different from E1. For example, if AES is selected for E1, AES,RC4, or another cipher may be selected for R1. In many cases, a standardencryption may be modified with or without decryption and may still beused for R1.

When a cipher is used for R1 1806, the output format will be dictated bythe cipher selected. For example, if a stream cipher is selected for R11806, the output will be a character stream. If a block cipher is used,the output will be packets in a block format. In either case, the outputstream is input into the synchronous device S2 1808 to form a cipherstream C². It is the C² operating with C¹ that generates the finalciphertext C 1810. The function of S2 1808 is, therefore, to ensure thatC² is compatible with C1 before the bitwise XOR.

To maintain the secure feature of the encryption, C² is different eachtime when the encryption is used. There are a number of ways to achievethat and two of them will be discussed below. One way to generate adifferent C² each time is by changing the starting index of F 1802. Forexample, the initial vector IV unit 1807 may store the number krepresenting how many characters in F 1802 have been used in previousencryptions. When a new encryption is required, the (k+1) characterstored in F 1802 will be input into the random (or cipher) device R11806. After the encryption, the IV unit 1807 is updated to store thenext starting index. When the entirety of the controllable plaintext F1802 has been used, the entire F 1802 may be replaced by a newcontrollable plaintext.

Another way to generate a different C² each time is by changing thestarting index of C². For example, the IV unit 1807 may store thestarting index k representing how many characters in C² have been usedin previous encryptions. When a new encryption is required, the entire F1802 is input into R1 1806. The synchronous device S2 1808 is used tocount the output and discard the first k characters. The stream C² isformed from the (k+1) character. This operation is particular suitablefor small messages P and F.

The final operation for the encryption is to perform the bitwise XORoperation with streams C¹ and C². There are three operating modes thatmay be utilized for this process namely, entire-stream,character-by-character, and block-by-block. The operation of encryptingusing an entire-stream mode, as illustrated in FIG. 19, numeral 1900,may be described as follows. When the 1st stream cipher C¹ is generated,the length of C¹ is passed to the device IV unit 1912. Based on thelength, the C² with the same size is generated by the synchronizing unitS2 1902. The final XOR operation 1906 is carried out with the entirestreams C¹ and C². This process is particularly suitable for encryptingshort messages. One advantage of the entire-stream mode is that there isno synchronous feedback needed. When the entire plaintext P is known,the size of C¹ is fixed and so is the C². Thus, there is no need tomonitor the streams C¹ and C² in real time. On the other hand, theentire-stream mode may only begin when the entire C¹ is generated andmay not be desirable for use on some real-time applications that utilizereal-time audio and video encryption, including police and militaryradio, broadcasting and transmission. From an operational point of view,entire-stream mode is a static operation.

In order to include real-time as well as static applications, asillustrated in FIG. 20, numeral 2000, a block-by-block mode may be used.The first operation in the block-by-block mode is to set up the blocksize, and then XOR the streams C¹ and C² block-by-block. Note that theblock size in the block-by-block mode is not directly related to theblock cipher used inside the encryption design and is device andoperating system dependent. For example, for a 32/64 bit operatingsystem or chip, using 32/64 bits as a block length, in many cases, ismore efficient. When the block-by-block mode is used, the main functionof the synchronous devices S1 and S2 2002 is to ensure that the streamsC¹ and C² are grouped into an appropriate size before the XORingoperation. In addition to this counting, the function of the S2 device2002 also includes a real-time feedback to the IV device unit 2012 sothat the process may be continued until the end of the encryption. Forexample, when a new block of C¹ is produced, the signal is sent to theIV device unit 2012. In this case, the counting feature in the IV deviceunit 2012 will be updated, and a new block from C² is requested. Thenewly generated two blocks will be XORed together to form a new block ofciphertext C 2010.

For some applications and small devices, the entire-stream and/orblock-by-block modes may not be the optimal way or feasible to implementthe encryption. In this case, character-by-character mode may be used.In fact, the character-by-character mode may be considered as a specialcase of the block-by-block, wherein the block size is one. When thecharacter-by-character mode is used, the cipher streams C¹ and C² arecharacter-based. In this case, the main function of the synchronousdevices S1 and S2 is simply to release the cipher streams one characterat a time. Whenever a characters is generated from each of C¹ and C²respectively, the characters are XORed together to form one character ofthe ciphertext C, as illustrated in FIG. 21, numeral 2100. The functionof the device IV 2112 is to increment the counting until the end of C¹.After the encryption, the length of the entire C¹ is stored in the IVdevice unit 2112 so that it may be used for the next encryption and tooffset the cipher stream C¹ or the controllable plaintext F. Thecharacter-by-character mode is particularly suitable for real-timesecurity applications using small devices with limited computationalpower and/or memory.

As illustrated in FIG. 22, numeral 2200, the operations of the secureencryption/decryption depend on the following five inputs/outputsnamely, Plaintext (P) 2204, Ciphertext (C 2212 and 2214), a firstpassword (K₁) 2206,2220, a second password (K₂) 2208,2222, and anindependent password file (a controllable plaintext stream F 2210,2224).Generally, K₁ 2204,2220 and K₂ 2208,2222 may be memorable passwords. Thepassword file F may be a random generated file containing a fullspectrum of printable and/or non-printable characters. The combinationsof the five inputs/outputs above form a range of functionalities acrossmany security applications. Certain applications/embodiments are listedbelow. One of the most basic applications of the encryption is todeliver secure messages from one place to another.

As illustrated in FIG. 23, numeral 2300, the delivery of secure messagesprocess may include assigning the parameters K1, K2, and F to user inputand including the user input process for K1, K2 and F inside theencryption unit E 2304 and decryption unit D 2314, wherein the K1, K2,and F input by the user are transmitted to the receiving agent 2310separately from the encryption process. The transmission may be anysuitable method that delivers the ciphertext from one place to another,for example, email transmission, email attachment, Internet downloading,file transfer (FTP), by hand (via courier), mail, telephone, radio, ortelegraph.

When the plaintext P is one of the following and in accordance withembodiments of the present invention, there is provided securetransmission for email messages, text messages, drawings and diagrams,photographs (including from satellites), music tracks (including lockingCD's or DVD's), video, and various types of computer files anddocuments. For the last four items recited above, the input to thetransmitting agent, sometimes, may be changed to printable or textformat such as UU-encode or yEnc first, and then may be transmitted tothe receiving agent. In fact, according to various embodiments of theinvention, all kinds of plaintext format can be handled. It is theinterface or transmitting agent, sometimes, that cannot handle the inputformat.

To use the present invention in accordance with embodiments thereof,generally a receiving agent such as a recipient's email address isneeded. However, as illustrated in FIG. 24, numeral 2400, if a receivingdestination is not specifically designated, secure messages may bedelivered by broadcasting the messages onto a public or private messageboard 2408. To broadcast a secure message, the ciphertext C may bepasted onto a corresponding public and/or private message board on theInternet 2408. For example, the secure message may be left in theso-called Guest Book of a public site or a private company site.Although the published message may be seen by anyone, the contents ofthe message are protected by the encryption. From a cryptology point ofview, publication of the ciphertext does not reveal the secure messageto unauthorized individuals. Only the intended person with theappropriate password and decryption may obtain the plaintext.

One advantage of the broadcasting method is that there will be notransmission to a particular party or destination and no time delay. Anintended recipient may access the message from any location (that isappropriately connectable to the site to which the message is sent) andvirtually at any time. The broadcast embodiment of the present inventionis most useful for small messages and may not be convenient for instantor real-time discussion.

For a real-time secure discussion or chat, as illustrated in FIG. 25,numeral 2500, another embodiment of the present invention utilizing atwo way construction (encryption & decryption), together with a chatroom environment may be implemented. After opening a chat room, theciphertext may be copied and pasted onto the chat room window with apartner.

This embodiment of the present invention provides real-time securemessage exchange on any network environment, including a privatenetwork, local area network (LAN), and the Internet. All communicationrecords will be saved automatically at the same time. The real-timesecure discussion or chat provides for secure communications amongparties or clients such as auction, tendering, buying and selling price,cost, a secure discussion with a banker and keeping all records, realtime interactive military instructions such as defusing a bomb, variouson-line consultancy such as buying a computer, real-time consultancy foron-line shopping, legal advice (wherein a reception area is a generalchat room and all customers coming and going may be observed, and aconsultant may email an instant message and use once K1, K2, and F sentto the client and open a private chat room to start the consultingwork), instant, secure and open on-line banking (wherein the bank mayservice a large number of customers in the general chat room, and eachindividual customer can communicate with the associated banker in aprivate chat room), and instant, secure and open on-line business suchas interactive ordering, buying, and paying. Generally, the instantexchanged messages would be small.

As illustrated in FIG. 26, numeral 2600, a Web page written by HTML andscript may be encrypted similar to the encryption of ordinary text. Inthis case, the encrypted web page can be read by a specially designeddecryption page as data. When the parameters K1, K2, and Fare enteredinto the decryption page D 2608, the original Web page is obtained andmay be displayed immediately on the screen. With the secure encryptionof the present invention, the security of the encrypted Web page (asdata) is ensured. When the K1, K2, and F are input to the decryptionpage D 2608, the original Web page will be displayed on the screen. Tochange to another Web page, another set of K1, K2, and F may be input,and the Web page may be encrypted again. This embodiment may be used forsuch applications as “Shares and Investment”, “Horse Racing Tips”,“Premium Jobs”, and “Downloadable Songs”, for example. By directlyinputting the Web page into the encryption, the ciphertext data C may bereadily generated. In one embodiment, parameters K1, K2, and F may beselected and emailed to users regularly as files so that the entiredecryption process may be arranged automatically.

As illustrated in FIG. 27, numeral 2700, in one embodiment, the presentinvention may be used to protect general software and installation. Aspecially designed decryption D software 2708 may be used to read theciphertext data C 2706 and to then install the desired software 2710.However, such an embodiment does not identify who is accessing thesoftware or store information on the length of time the software isutilized, making charging for the use of the software informationdifficult.

By re-arranging the input parameters P, K1, K2, F, and C, a securecharging facility may be created. Charging facilities such as thefollowing may utilize the present invention according to variousembodiments: credit card security, cash machine card security, accesscontrol, on-line banking, on-line shopping, and an on-line entertainingservice provider.

In a credit card implementation, a credit card user is issued the creditcard after approval from a provider (usually a bank) with aprenegotiated credit limit. When a purchase is made, the credit carduser indicates a consent to pay, usually by signing a receipt with arecord of the card details and indicating the amount to be paid. In manycases, an electronic verification system has been used which allowsmerchants (using a strip of magnetized material on the card holdinginformation in a similar manner to magnetic tape T or a floppy disk) toverify that the card is valid and the credit card customer hassufficient credit at the time of purchase to complete the purchase ortransaction.

However, there is very little security or even no security on creditcards. For example, the card validation check is basically checking theexpiry date. When the credit card machine makes a request, thecardholder information and remaining credit are sent without furtherchecking, specific credit card numbering and rules are open, and creditcard information is readily copied, stolen and duplicated without thecredit card owner's consent. When the database is illegally accessed bya hacker or an insider, all cardholder information and records arevulnerable. Card faults and crimes are committed easily on a largescale. There is evidence that organized crime is selling duplicatedcredit cards.

To provide a solution for credit card security problems, the secureencryption in accordance with embodiments of the present invention maybe used to provide a powerful verification method to verify thevalidation of the card, a secure encryption for the card information, asecure encryption for the credit card database server, and limitsfinancial damage when the card information is captured and/or duplicatedby criminal merchants or illegally accessed during transmission. Whenthe user applies for an account, the server may perform the following:based on the user information, select a plaintext P. This P may contain,for example, the cardholder name, starting and expiry date, credit cardnumber, and other desired information; generate the remaining parametersK1, K2, and F according to the requirements of the user and/or thecompany, use all parameters P, K1, K2, and F to perform encryption toproduce a ciphertext C; split the strings P, C, and F into two partssuch as P=P1+P2, C=C1+C2, and F=F1+F2 (There is no specific requirementfor the splitting), insert the information of P1, K1, F1, and C1 intothe credit card, and insert the information P2, K2, F2, and C2 into thecardholder database record. For further security, any other informationrelated to card holder, credit limit and remaining credit may beencrypted and stored into the cardholder database record.

As illustrated in FIG. 29, numeral 2900, a credit card verifying machine2904 may utilize the present invention to secure a credit cardtransaction in accordance with embodiments thereof. When the credit cardis inserted into the credit card verifying machine, the credit cardverifying machine retrieves the P1, K1 and F1 from the credit card 2902and the values P2, K1, K2, F2 from the database record 2906 to performencryption. The encryption result is the ciphertext C. This newlycreated ciphertext C is used to verify the ciphertext C¹ (from creditcard 2902) and C² (from the database record 2906) for verification. Whenthe two ciphertexts are matched, the credit card validation isconsidered to be successful. After a successful verification, theencrypted credit information is sent to complete the transaction. Aftereach visit (or certainly after a successful transaction), a new set of Fis randomly generated and a new ciphertext C is obtained using theencryption. The information of F and C are divided into F1, C1, F2, andC2 and are stored back in the credit card 2902 of the user and thedatabase record 2906 respectively for an update. Also, a new set ofencrypted credit limit information is updated. All necessary previousrecords and the related transactions may be logged to build a history ofthe account of the credit card user. Hence, card duplication from theserver information is impossible. All card checking and verifying aredone in the card machine. All information transmission via the Internetor network are encrypted to eliminate network spying attacks such as“spyware” “Trojan Horse” or “Insider.” Since the information C1, C2, F1,and F2 are changed after each usage, a duplicated card from the usercard is worthless. For the same reason, after usage of a duplicatedcard, the original card will be invalid and therefore illegal activitiesof using duplicated cards can be monitored and detected more easily. Ingeneral, there is no user interaction for the credit card operation andtherefore the credit card operation may be called a “Non-InteractiveOperation.”

As illustrated in FIG. 30, numeral 3000, the present invention inaccordance with embodiments thereof may be utilized to control locks ondoors and access to specified areas. Generally, a card key allows aperson to open a door. The traditional access control method (encryptionand verification) suffers from the same problems as a credit card,namely: lack of a powerful verification method to verify the legitimacyof the card key since card keys are easily to steal and duplicate, and apowerful method to guard the card key server against hacking (Forexample, it is well known that an intruder can illegally enter thedatabase of the card key server to steal all key records and use stolenkey/stolen key card information to gain access to any room). By usingthe secure encryption of the present invention, these above-citedproblems may be prevented. As illustrated in FIG. 30, key cardinformation includes P₁, K1, C₁, and F₁ 3002, a lock unit 3004 is usedfor encryption, and a database record includes P₂, K2, F₂ and C₂ 3006.When the key card is inserted into the lock, the verification processproceeds in accordance to the verification of the credit card process.Basically, if the encryption produces the same ciphertexts, the card keyis considered to be valid and the door will open. Information C1, C2,F1, and F2 are changing and updated after each access. All necessaryprevious records and transactions may be logged to build a history ofthe account. When the server is hacked by organized crime or insiders,key duplication from the server record is prevented. Loss and duplicatedkeys are worthless since C and F change for each access. Lost and stolenkeys may be replaced easily.

As illustrated in FIG. 31, numeral 3100, a cash machine operation mayalso utilize the secure encryption according to embodiments of thepresent invention. Generally, a password, typically a memorablepassword, 3106 may be entered to activate the cash machine 3104transaction. Cash machine security suffers from the same problem as incredit card application. Part of the plaintext P is extracted as in thecredit card situation as the memorable password, i.e., P=P1+P2+P3.Generally, the parameter P3 should a relatively easy to remember numberor string and is used to input the encryption when prompted. Theparameters P1, K1, F1, and C1 are inserted into the cash machine card3102. The parameters P2, K2, F2, and C2 are inserted into the databaserecord 3108 of the bank. To improve the security further, the accountand associated information may be encrypted by the same secureencryption or other selected methods. After each visit or certainlyafter each successful transaction, the parameters F1, F2, C1, and C2 arere-generated and updated in the card and database. The new accountbalance and other related information may be encrypted and updated sothat the information is protected. All necessary previous records andtransactions may be logged to build a history of the account. As withthe credit card, the cash machine card and database record are protectedby the secure encryption. When the server is illegally accessed byorganized crime or insiders, the cash machine card duplication from thedatabase record is impossible. A duplicated card is worthless since Cand F are changing for each access. For the same reason, after usage ofa duplicated card, the original card will be invalid, and therefore,illegal activities of using duplicated cards can be monitored anddetected more easily. Lost and stolen keys may be replaced easily bychanging the F1, F2, C1, and C2. The application is further protected bythe memorable password.

As illustrated in FIG. 32, numeral 3200, downloadable software from theInternet may be protected by the secure encryption according toembodiments of the present invention. The fixed E, K2, P2, F2 areinserted into the software in the database record 3210 and are protectedby the executable code of the software. The verification process withencryption is included in the software installation. The software isthen put onto the Internet 3206 for download. When the user registersthe software in the authorized site, the parameters P₁, K1, F₁, and C₁are generated (termed an “activation file” 3204) based on the encryptionparameters inside the software 3202. The activation file 3204 is thensent to the registered user as email for authorized softwareinstallation. During the software installation, the activation file 3204is requested and is input into the secure encryption. When theparameters P1, P2, K1, K2, F1, F2 and the encryption E produce the sameciphertext C as in the activation file 3204, the software installationcontinues and installation is considered to be successful. For differentregistered users, P1, K1, F1, and C may be different, so that each userhas a proper registered version of the software. To further protect thesoftware, sometimes, a user password P3 may be extracted from P1 as asoftware activation code and provided to the Service Web Page 3206 sothat an interactive parameter is also needed for the softwareinstallation. All necessary previous records and transactions may belogged to build a history of the account.

The secure encryption, in accordance with embodiments of the presentinvention, may be used for charging industries on the Internet. Forexample, the secure encryption may be used when a user applies for anaccount by filling out forms, a service provider sets up the useraccount in the database, and instead of the usual “User Name” and“Password”, the provider sends the activation file as email to theregistered user at the same time. Based on the username, password, andthe activation file, the user may log onto the service site via theencryption process as described above. The user downloads and runs theservice page on the local machine 3202. The information of theactivation file 3202 is read by the service page 3206 automatically. Theuser inputs the user name and password P3 3208 into the service page3206 so that secure encryption may be performed. After the userauthentication, encrypted service data and/or Web pages are sent by thedatabase record 3210 to the local machine 3202 for decryption andproviding services to the customer.

For further protection, the P3 may include fingerprint or otherbio-metric information. For portability of the application, theactivation file may be stored as a memory stick. Applications includeuse by an Internet Service Provider (ISP) such as American On-line(AOL), job hunting, a dating agency, an Internet TV, and a broadbandtelephone.

As illustrated in FIG. 33, numeral 3300, the secure encryption, inaccordance with embodiments of the present invention, may be utilized inon-line banking. Since most on-line banking systems have a bankingoperation and database server, the secure encryption may added topresent protective programs to form an encryption layer in the databaseserver. The banking operation and database server should be physicallyprotected against unauthorized access and should not connect to theInternet directly. The banking accounts and related information shouldbe encrypted by the encryption layer before transmitting to the bankingpage via the Internet or the network environment. The user downloads andruns 3302 the on-line banking page 3306 on the local machine. Theinformation of the activation file 3308 is read by the banking page 3306automatically. Together with the user name and password P3 3304 to thebanking page, the secure encryption is performed for userauthentication. After the user authentication, encrypted bankingoperations 3312 are sent to the encryption layer 3310 for decryption.The decrypted banking information is then sent to the banking operationand database server 3312 for the actual banking action. To increase theportability of the on-line banking, the activation file may be stored ina local machine, a memory stick, and/or any portable storage devicessuch as a hard disk or CD. To increase the security, P3 or theactivation file may include bio-metric information such as fingerprints.Adding an encryption layer will keep all existing on-line bankingoperation un-changed so that modifications are kept to minimum.

Although a few embodiments of the present invention have been shown anddescribed, it would be appreciated by those skilled in the art thatchanges may be made in these embodiments without departing from theprinciples and spirit of the invention, the scope of which is defined inthe claims and their equivalents.

1. A system of encrypting plaintext information securely, comprising: atransmitting agent to generate and synchronize a first cipher streamusing the plaintext information and a first key, to generate andsynchronize a second cipher stream using a second key and a randomizingfunction to randomize a controllable plaintext stream to form a secondsynchronized cipher stream, and to operate on the plurality of first andsecond cipher streams using an exclusive disjunction operator to obtaina ciphertext stream; and a receiving agent to decrypt the ciphertextstream.
 2. The system of claim 1, wherein the transmitting agentcomprises a central processing unit, a memory and a transceiver coupledto process the plaintext information and, where desired, to decrypt areceived ciphertext stream.
 3. The system of claim 2, wherein thetransceiver transmits the ciphertext stream and the controllableplaintext stream to the receiving agent separately.
 4. The system ofclaim 1, wherein the system comprises a data entry station and adatabase server linked via a Wide Area Network/Local Area Network or acombination thereof.
 5. A device to encrypt plaintext informationsecurely comprising: a data entry station comprising first cipher streamgenerator generating and synchronizing a first cipher stream using theplaintext information and a first key; a second cipher stream generatorgenerating and synchronizing a second cipher stream using a second keyand a randomizing function to randomize and synchronize a controllableplaintext stream; and an exclusive disjunction operator operating on thefirst and second synchronized cipher streams to obtain a ciphertextstream.
 6. The device of claim 5, wherein the first cipher streamgenerator comprises: a block cipher encryption unit arranged to generateand synchronize the first cipher stream upon input of the plaintextinformation and the first key, wherein the block cipher encryption unitcomprises one of: a block cipher encryption device to generate the firstcipher stream and a first synchronization unit to synchronize the firstcipher stream; or a block cipher encryption/synchronization unit thatgenerates and synchronizes the first cipher stream.
 7. The device ofclaim 5, wherein the second cipher stream generator comprises: a randomfunction generator arranged to randomize, then synchronize, thecontrollable plaintext stream upon input of the second key and thecontrollable plaintext stream to output the second cipher stream,wherein the random function generator comprises one of: a randomfunction generator device to randomize the controllable plaintext streamand a second synchronization unit to synchronize the randomized secondcipher stream; or a random function generator/synchronization unit thatrandomizes and then synchronizes the second cipher stream.
 8. The deviceof claim 5, wherein the exclusive disjunction operator is an exclusiveOR logical operator.
 9. A method to encrypt plaintext informationsecurely, comprising: generating and synchronizing a first cipher streamusing the plaintext information and a first key; generating andsynchronizing a second cipher stream using a second key and arandomizing function to randomize a controllable plaintext stream toform a second cipher stream; and operating on the plurality ofsynchronized first and second cipher streams using an exclusivedisjunction operator to obtain a ciphertext stream.
 10. A method toencrypt plaintext information securely, comprising: using an exclusivedisjunction operator to generate a ciphertext stream from a first cipherstream generated and synchronized from the plaintext information and afirst key, and a second cipher stream randomized and then synchronizedfrom a controllable plaintext stream using a second key.
 11. A method toencrypt plaintext information securely, comprising: generating aplurality of synchronized cipher streams, wherein at least a firstcipher stream is generated and synchronized by encrypting plaintextinformation using a first keyword and at least a second cipher stream isgenerated and synchronized by a random function operating on acontrollable plaintext and a second keyword; and operating on thesynchronized plurality of cipher streams using an exclusive disjunctionoperator to obtain a ciphertext stream.
 12. A computer readable mediumhaving recorded thereon computer readable instructions to encryptplaintext information securely, the computer readable instructionscomprising: generating and synchronizing a first cipher stream using theplaintext information and a first key; randomizing and thensynchronizing a second cipher stream formed from a controllableplaintext stream using a second key and a randomizing function; andoperating on the synchronized plurality of first and second cipherstreams using an exclusive disjunction operator to obtain a ciphertextstream.
 13. A computer readable medium having recorded thereon computerreadable instructions to encrypt plaintext information securely, thecomputer readable instructions comprising: using an exclusivedisjunction operator to generate a ciphertext stream from a first cipherstream generated and synchronized from the plaintext information and afirst key, and a second cipher stream randomized and then synchronizedfrom a controllable plaintext stream using a second key and arandomizing function.
 14. A computer readable medium having recordedthereon computer readable instructions to encrypt plaintext informationsecurely, the computer readable instructions comprising: generating asynchronized plurality of cipher streams, wherein at least a firstsynchronized cipher stream is generated by encrypting plaintextinformation using a first keyword and at least a second synchronizedcipher stream is generated by a random function operating on acontrollable plaintext and a second keyword; and operating on thesynchronized plurality of cipher streams using an exclusive disjunctionoperator to obtain a ciphertext stream.
 15. A method of encryptingplaintext information securely in a credit card, the method comprising:selecting, by a server/database record, a plaintext P based on userinformation when a user applies for an account; generating, by theserver/database record a first key, a second key and a controllableplaintext stream according to requirements of the user and/or a companyproviding the credit card; using, by the server/database record, theplaintext, the first key, the second key, and the controllable plaintextstream to perform encryption to produce a ciphertext C; insertinginformation of the plaintext, the first key, the controllable plaintextstream and the a first ciphertext stream into the credit card; insertinginformation of the plaintext, the second key, the controllable plaintextstream, and a second ciphertext stream into the cardholder databaserecord; and encrypting the plaintext into ciphertext in accordance witha predetermined scheme utilizing the first key, the second key, and thecontrollable plaintext stream.
 16. The method of claim 15, wherein atleast one of the strings of the plaintext, the ciphertext and thecontrollable plaintext string are split.
 17. A method of encryptingplaintext information securely, comprising: assigning a first keywordK1, a second keyword K2, a controllable plaintext stream F, and arandomizing function R to user input; sending K1, K2, F and R to areceiving agent via a secure mode; and encrypting a plaintext streamusing K1, K2, F and R in accordance with a predetermined scheme to forma ciphertext stream and transmitting the ciphertext stream to thereceiving agent.
 18. The method of claim 17, wherein encrypting aplaintext stream using K1, K2, F and R in accordance with apredetermined scheme comprises: using a block cipher and K1 to convertthe plaintext stream into a first cipher stream; randomizing F using Rto form a second cipher stream; synchronizing the first cipher streamand the second cipher stream; and operating on the synchronized firstand second cipher streams using an exclusive disjunction operator toobtain a ciphertext stream.
 19. The method of claim 17, furtherincluding using a vector function to provide header information to theciphertext stream from the synchronized first cipher stream.
 20. Themethod of claim 17, further including using a vector function to operateon the synchronized second cipher stream to provide header informationto the ciphertext stream.
 21. A method of decrypting plaintextinformation encrypted in accordance with claim 17, comprising: using K1,K2, F and R in a reverse process of claim 17 to decrypt the ciphertextstream.
 22. The method of claim 17, wherein the method is implemented inone of the following transactions: a credit card transaction, a cashmachine transaction, a charging transaction on the Internet, or anon-line banking transaction.